package com.yic.module.wms.controller.admin.itemwarehouse.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 产品仓储信息 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ItemWarehouseBaseVO {

    @Schema(description = "工厂", requiredMode = Schema.RequiredMode.REQUIRED, example = "22742")
    @NotNull(message = "工厂不能为空")
    private Long factoryId;

    @Schema(description = "产品", requiredMode = Schema.RequiredMode.REQUIRED, example = "28760")
    @NotNull(message = "产品不能为空")
    private Long itemId;

    @Schema(description = "默认仓库", example = "7251")
    private Long warehouseId;

    @Schema(description = "默认库区", example = "21022")
    private Long areaId;

    @Schema(description = "默认库位", example = "32248")
    private Long locationId;

    @Schema(description = "产品类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "产品类型不能为空")
    private Integer itemType;

    @Schema(description = "出库策略", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "出库策略不能为空")
    private Integer strategy;

    @Schema(description = "标准库存")
    private BigDecimal standardStock;

    @Schema(description = "安全库存")
    private BigDecimal salfStock;

    @Schema(description = "补货点")
    private BigDecimal reorderPoint;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态不能为空")
    private Byte status;

}
